<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>页面管理</title>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/main.css"/>
</head>
<body>
<div class="view-content">
    <div class="good-lib-wrapper" <if condition="count($list) egt 8">style="min-height:1100px"</if>>
        <div class="view-top">
            <div class="SearchCon">
                <div class="SearchTxt">
                    <form action="{:U('Admin/Page/index')}" method="get" id="myform">
                        <div class="SearchTxtList">
                            <div class="SearchPre">
                                <if condition="$key_id eq 1">
                                    <div class="NameId" value="1">页面标题</div>
                                    <elseif condition="$key_id eq 2"/>
                                    <div class="NameId" value="2">页面ID</div>
                                    <elseif condition="$key_id eq 3"/>
                                    <div class="NameId" value="3">商品ID</div>
                                    <else />
                                    <div class="NameId" value="0">页面名称</div>
                                </if>
                                <div class="NameIdList">
                                    <ul>
                                        <li <if condition="$key_id eq 0">class="active"</if> value="0">页面名称</li>
                                        <li <if condition="$key_id eq 1">class="active"</if> value="1">页面标题</li>
                                        <li <if condition="$key_id eq 2">class="active"</if> value="2">页面ID</li>
                                        <li <if condition="$key_id eq 3">class="active"</if> value="3">商品ID</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="SearchLabel">
                            <label>
                                <input type="text" value="{$keywords}" name="keywords" class="SLName" placeholder="请输入搜索内容"/>
                            </label>
                        </div>
                        <div class="ContextZT">
                            <if condition="$page_state eq 0">
                                <div class="ContextZTTxt" value="0">未发布</div>
                                <elseif condition="$page_state eq 1"/>
                                <div class="ContextZTTxt" value="1">已发布</div>
                                <else />
                                <div class="ContextZTTxt" value="3">全部状态</div>
                            </if>
                            <div class="NameIdList">
                                <ul>
                                    <li <if condition="$page_state eq 3">class="active"</if> value='3'>全部状态</li>
                                    <li <if condition="$page_state eq 0">class="active"</if> value='0'>未发布</li>
                                    <li <if condition="$page_state eq 1">class="active"</if> value='1'>已发布</li>
                                </ul>
                            </div>
                        </div>
                        <div class="ContextZT">
                            <if condition="$typeid eq 1">
                                <div class="ContextZTBook" value='1'>单品页</div>
                                <elseif condition="$typeid eq 2"/>
                                <div class="ContextZTBook" value='2'>聚合页</div>
                                <else />
                                <div class="ContextZTBook" value='0'>全部页面</div>
                            </if>
                            <div class="NameIdList">
                                <ul>
                                    <li <if condition="$typeid eq 0">class="active"</if> value='0'>全部页面</li>
                                    <li <if condition="$typeid eq 1">class="active"</if> value='1'>单品页</li>
                                    <li <if condition="$typeid eq 2">class="active"</if> value='2'>聚合页</li>
                                </ul>
                            </div>
                        </div>
                        <input type="hidden" name="key_id" value="0" />
                        <input type="hidden" name="page_state" value="3"/>
                        <input type="hidden" name="typeid" value="0"/>
                        <button type="button" class="PageSLBtns SLBtns">查询</button>
                    </form>
                </div>
            </div>
            <div class="AppendBook">
                <a href="{:U('Admin/AddPage/index')}">
                    <i>+</i>
                    <em>添加页面</em>
                </a>
            </div>
        </div>
        <div class="view-con el-table__body-wrapper">
            <table width="100%" cellpadding="0" cellspacing="0" border="0" class="el-table el-tableCon">
                <thead>
                <tr>
                    <th class="el-table_1_column_1" width="123px">
                        <div class="cell">页面主图</div>
                    </th>
                    <th class="el-table_1_column_2" width="90px">
                        <div class="cell">页面ID</div>
                    </th>
                    <th class="el-table_1_column_3" width="108px">
                        <div class="cell">页面类型</div>
                    </th>
                    <th class="el-table_1_column_4" width="196px">
                        <div class="cell">页面名称</div>
                    </th>
                    <th class="el-table_1_column_5" width="108px">
                        <div class="cell">商品名称</div>
                    </th>
                    <th class="el-table_1_column_6" width="108px">
                        <div class="cell">总下单量</div>
                    </th>
                    <th class="el-table_1_column_7" width="173px">
                        <div class="cell">上次编辑时间</div>
                    </th>
                    <th class="el-table_1_column_8 ImgCell" width="107px">
                        <div class="cell">
                            状态 <img src="__PUBLIC__/Admin/images/gth.png" alt=""/>
                        </div>
                    </th>
                    <th class="el-table_1_column_9" width="87px">
                        <div class="cell">备注</div>
                    </th>
                    <th class="el-table_1_column_10" width="314px">
                        <div class="cell">操作</div>
                    </th>
                </tr>
                </thead>
                <tbody class="AppenTr">
                    <foreach name="list" item="vo" >
                        <tr id="{$vo['id']}">
                            <td class="el-table_1_column_1">
                                <div class="cell cellnum"><img src="{$vo['page_img']}" alt=""/></div>
                            </td>
                            <td class="el-table_1_column_2">
                                <div class="cell">{$vo['id']}</div>
                            </td>
                            <td class="el-table_1_column_3">
                                <div class="cell"><if condition="$vo['typeid'] eq 1">单品页<else />聚合页</if></div>
                            </td>
                            <td class="el-table_1_column_4">
                                <if condition="$vo['typeid'] eq 1">
                                    <div class="cell"><a target="_blank" href="{:U('Home/Mate/index',array('id'=>$vo['id']))}" style="color: #0093d4;">{$vo['page_name']}</a></div>
                                    <else />
                                    <div class="cell"><a target="_blank" href="{:U('Home/Group/index',array('id'=>$vo['id']))}" style="color: #0093d4;">{$vo['page_name']}</a></div>
                                </if>
                            </td>
                            <td class="el-table_1_column_5">
                                <div class="cell">
                                    <if condition="$vo['typeid'] eq 1">
                                        {$vo['goods_name']}
                                        <else />-</if>
                                </div>
                            </td>
                            <td class="el-table_1_column_6">
                                <div class="cell"><if condition="empty($vo['order_number'])">0<else />{$vo['order_number']}</if></div>
                            </td>
                            <td class="el-table_1_column_7">
                                <div class="cell">{$vo['page_edit_time']}</div>
                            </td>
                            <td class="el-table_1_column_8">
                                <div class="cell"><if condition="$vo['page_state'] eq 0">未发布<else />已发布</if></div>
                            </td>
                            <td class="el-table_1_column_9">
                                <div class="cell">{$vo['remarks']}</div>
                            </td>
                            <td class="el-table_1_column_10">
                                <div class="cell">
                                    <button type="button" class="btn_s1">
                                        <if condition="$vo['page_state'] eq 0">
                                            <if condition="$vo['typeid'] eq 1">
                                                <span><a style="color: #0093d4;" href="{:U('Admin/AddPage/singlepage',array('id'=>$vo['id']))}">编辑</a></span>
                                                <else />
                                                <span><a style="color: #0093d4;" href="{:U('Admin/AddPage/grouppage',array('id'=>$vo['id']))}">编辑</a></span>
                                            </if>
                                            <else />
                                            <span style="color: rgb(153, 153, 153);">编辑</span>
                                        </if>
                                    </button>
                                    <button type="button" class="btn_s2" alt="{$vo['id']}">
                                        <span>复制</span>
                                    </button>
                                    <button type="button" class="btn_s3">
                                        <if condition="$vo['typeid'] eq 1">
                                            <span><a style="color: #0093d4;" href="{:U('Home/Mate/index',array('id'=>$vo['id']))}" target="_blank">预览</a></span>
                                            <else />
                                            <span><a style="color: #0093d4;" href="{:U('Home/Group/index',array('id'=>$vo['id']))}" target="_blank">预览</a></span>
                                        </if>
                                    </button>
                                    <button type="button" class="btn_s4" alt="{$vo['id']}">
                                        <span>移除</span>
                                    </button>
                                </div>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
        </div>
        <div class="pages">
            {$pages}
        </div>
    </div>
</div>
<div class="ImgCellMed">
    <div class="ImgCellTxt">
        <div class="ImgCellTxtMain">已发布的页面可在投放广告时使用，为防范风险，一旦发布则不能修改</div>
    </div>
</div>
<div class="CopyMed">
    <div class="CopyPre">
        <div class="h3">复制页面</div>
        <div class="Getclose"></div>
        <div class="CopyForm">
            <form>
                <div class="CopyLabel">
                    <label>
                        <input type="text" name="CopyName" class="CopyName" value=""/>
                    </label>
                </div>
                <div class="BookNameBtns">
                    <div class="AppendBtns">
                        <button type="button" class="RNClose">取消</button>
                        <button type="button" class="RNTxt copyRNTxt" alt="0">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="CopyPres1">
        <div class="h3">提示</div>
        <div class="Getclose"></div>
        <div class="CopyForm">
            <form>
                <div class="CopyLabel CopyLabel1">此操作仅会将页面从列表中移除，不影响已发布页面</div>
                <div class="BookNameBtns">
                    <div class="AppendBtns">
                        <button type="button" class="RNClose">取消</button>
                        <button type="button" class="RNTxt removeRNTxt" alt="0">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="tipsSave">
    <div class="saveTip">
        <div class="h3">提示</div>
        <div class="close"></div>
        <div class="saveContent">
            <p>复制成功</p>
        </div>
        <div class="saveBtns">
            <button type="button" class="pagesaveTo">确定</button>
        </div>
    </div>
</div>
<script src="__PUBLIC__/Admin/js/jquery-1.12.4.js"></script>
<script src="__PUBLIC__/Admin/js/swiper.min.js"></script>
<script src="__PUBLIC__/Admin/js/colpack.js"></script>
<script src="__PUBLIC__/Admin/js/main.js?v={:time()}"></script>
<script src="__PUBLIC__/Admin/js/page_index.js?v={:time()}"></script>
</body>
</html>